# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-81
pkgver=0_git20190918
pkgrel=0
_commit="4352130bd2363954262a804b086f86b9d13d97f9"
pkgdesc="a port of the EightyOne ZX81 Emulator to libretro"
url="https://github.com/libretro/81-libretro"
arch="all"
license="GPL-3.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/81-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/81-libretro-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 81_libretro.so "$pkgdir"/usr/lib/libretro/81_libretro.so
}

sha512sums="92c764071aec077c4783b87a94f4d9197a5cdaa0d99de320e6d1471f666aef8dae3e3a393ba7fd261c5fd49a5aed607683c6f5aab50d20a688dc535085584581  libretro-81-4352130bd2363954262a804b086f86b9d13d97f9.tar.gz"
